<?php
namespace app\common\model;

use think\Db;
use think\Model;

class CpChannel extends Model
{
	protected $connection = 'db_config_aiqi';

    public static function get_list($where,$order,$page = 1, $query = [])
    {
        $list = self::where($where)
            ->order($order)
            ->paginate(15);
        return $list;
    }

    public static function get_all_list($field="*",$where=[])
    {
        $list = self::where($where)
            ->field($field)
            ->select();
        return $list;
    }
}